home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 51 / Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso / -in_the_mag- / workbench / term_4.8 / extras / source / term-source.lha / Compiler.h < prev    next >
C/C++ Source or Header  |  1997-07-08  |  1KB  |  76 lines

  1. /*
  2. **    Compiler.h
  3. **
  4. **    Compiler specific definitions
  5. **
  6. **    Copyright © 1990-1997 by Olaf `Olsen' Barthel
  7. **        All Rights Reserved
  8. */
  9.  
  10. #ifndef _COMPILER_H
  11. #define _COMPILER_H 1
  12.  
  13.     /* SAS/C */
  14.  
  15. #ifdef __SASC
  16. #define SAVE_DS        __saveds
  17. #define FAR        __far
  18. #define STACKARGS    __stdargs
  19. #define ASM        __asm
  20. #define REG(x)        register __##x
  21. #endif    /* __SASC */
  22.  
  23.     /* DICE */
  24.  
  25. #ifdef _DCC
  26. #define NO_PRAGMAS
  27. #define SAVE_DS
  28. #define FAR
  29. #define STACKARGS    __stkargs
  30. #define ASM
  31. #define REG(x)        register __##x
  32. #endif    /* _DCC */
  33.  
  34.     /* GCC */
  35.  
  36. #ifdef __GNUC__
  37. #define NO_PRAGMAS
  38. #define USE_GLUE
  39. #define SAVE_DS
  40. #define FAR
  41. #define STACKARGS
  42. #define ASM
  43. #define REG(x)
  44. #endif    /* _DCC */
  45.  
  46.     /* StormC */
  47.  
  48. #ifdef __STORM__
  49. #define NO_PRAGMAS
  50. #define USE_GLUE
  51. #define SAVE_DS
  52. #define FAR
  53. #define STACKARGS
  54. #define ASM
  55. #define REG(x)
  56. #endif    /* __STORM__ */
  57.  
  58.     /* Should we use glue code, i.e. no direct assembly interface routines? */
  59.  
  60. #ifdef USE_GLUE
  61.  
  62. #ifdef ASM
  63. #undef ASM
  64. #endif    /* ASM */
  65.  
  66. #ifdef REG
  67. #undef REG
  68. #endif    /* REG */
  69.  
  70. #define ASM    /* nothing */
  71. #define REG(x)    /* nothing */
  72.  
  73. #endif    /* USE_GLUE */
  74.  
  75. #endif    /* _COMPILER_H */
  76.